from rest_framework import permissions

from utils.viewsets import ModelViewSet
from apps.SystemService.models.parameter import ParameterModels
from apps.SystemService.serializers.parameter import ParameterModelSerializer
from apps.SystemService.filters.parameter import ParameterFilters


class ParameterModelViewSet(ModelViewSet):
    queryset = ParameterModels.objects.filter(is_delete=False)
    serializer_class = ParameterModelSerializer
    permission_classes = [permissions.IsAuthenticated]
    filter_class = ParameterFilters
